home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-05-13 | 1.7 KB | 51 lines | [TEXT/ttxt] |
- Follow the procedure in the How To Animate An Icon MacPainting.
-
- A mask should consist of the EXCLUSIVE OR of the Un-Selected and Selected Icons.
-
- Here's a Truth Table for XOR:
-
-
- 0 XOR 0 = 0
- 0 XOR 1 = 1 (A '1' is a dark pixel ("ON"))
- 1 XOR 0 = 1
- 1 XOR 1 = 0
-
- Un-selected Selected Mask
-
- IE:
- If the pixel is to be the SAME in the Un-selected and Selected Icons, the Mask
- pixel is white.
-
- If pixels are DIFFERENT between the Un-selected and the Selected Icons, the Mask
- pixel is black.
-
- By following these rules, a single click on an application Icon can bring out
- your initials, a different view of the same icon, or almost anything that will
- fit in the 32 x 32 grid. Your mask will wind up looking pretty garbled, but with
- careful attention it will work out.
-
- (Note: of course, things get screwed up with there is another pattern
- overlaid on the highlighted resultant. Therefore, things can begin to look
- pretty bad whenever the disk is ejected (dimmed icons in disk window) or the
- icon is loose upon the DeskTop!)
-
- If you review the instructions the the How To Make Animated Icons MacPainting,
- you will see that they result in a Half-Mask: The Truth Table resulting from
- this procedure is:
-
-
- 0 XOR 0 = 0
- 0 XOR 1 = 1 (A '1' is a dark pixel ("ON"))
- 1 XOR 0 = 0
- 1 XOR 1 = 0
-
- Un-selected Selected Mask
-
- Hmm. Well, the easy way is to repeat the procedure, this time swapping the
- places taken by the Un-Selected and Selected Masks. This will result in a second
- half-mask. Make sure there is a hole in the frames surrounding the half-masks,
- and simply overlay one on top of the other, and you've got an almost-perfect
- EOR mask.
-
-
-